package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName("Orders")
public class Orders implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String number;
    private Integer status;
    @TableField("userId")
    private String userId;
    @TableField("addressBookId")
    private String addressBookId;
    @TableField("orderTime")
    private String orderTime;
    @TableField("checkoutTime")
    private String checkoutTime;
    @TableField("payMethod")
    private Integer payMethod;
    private Integer amount;
    private String remark;
    @TableField("userName")
    private String userName;
    private String phone;
    private String address;
    private String consignee;
    @TableField("orderDetails")
    private List<OrdersDish> orderDetails;
}
